package org.eenie.commonlib.api;


import org.eenie.commonlib.BuildConfig;

public class ApiEnv {


    private static final String BASE_DEBUG_HOST = "http://120.26.1.150:8888";
    public static final String BASE_RELEASE_HOST = "http://120.26.1.150:8888";
    public static final String BASE_PATH = "api";
    private static Env sEnv = BuildConfig.DEBUG ? Env.DEBUG : Env.RELEASE;

    public enum Env {
        DEBUG, RELEASE
    }


    public static String BASE_HOST() {
        return sEnv == Env.DEBUG ? BASE_DEBUG_HOST : BASE_RELEASE_HOST;
    }


    public static String BASE_HOST(Env env) {
        return env == Env.DEBUG ? BASE_DEBUG_HOST : BASE_RELEASE_HOST;
    }
}
